<?php
/**
 * 活动关联的项目
 * @author Administrator
 *
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ActivityProject extends Model
{
    //
	protected $table = 'activity_project';

    public $timestamps = false;

    public function activity()
    {
        return $this->belongsTo('App\Models\Activity', 'activity_id', 'id');
    }


    public function project()
    {
        return $this->belongsTo('App\Models\Project', 'project_id', 'id');
    }

}
